namespace go api

struct ListProductCustomValueRequest {
    1: i32 pageNum
    2: i32 pageSize
    3: string sort
    4: ProductCustomValueData data
}

struct ListProductCustomValueResponse {
	1: list<ProductCustomValueData> data
	2: i64 count
}

struct ProductCustomValueData {
	1:i64 id
	2: string createdAt,
    3: string updatedAt,
    4: i64 createdUserId,
    5: i64 updatedUserId,
    6: i64 organizationId,
    7: string updatedUserNickname,
    8: string createdUserNickname,
	9: i64 somsProductId
	10: i64 fieldId
	11: string fieldName
	12: string fieldType
	13: string printFlag
	14: i64 sort
	15: string value
}

struct BatchDeleteProductCustomValueRequest {
    1: list<i64> ids
}

service ProductCustomValue {
    ListProductCustomValueResponse listProductCustomValue(1: ListProductCustomValueRequest req)
    ProductCustomValueData getProductCustomValue(1: ProductCustomValueData req)
    void addProductCustomValue(1: ProductCustomValueData req)
    void editProductCustomValue(1: ProductCustomValueData req)
    void deleteProductCustomValue(1: i64 id)
    void batchDeleteProductCustomValue(1: BatchDeleteProductCustomValueRequest req)
}